package com.example.parallel;

import com.example.util.CommonUtils;

public class MyTask {

    private final int duration;

    public MyTask(int duration) {
        this.duration = duration;
    }

    public int doWork() {
        CommonUtils.printThreadLog("doWork");
        CommonUtils.sleepSecond(duration);
        return duration;
    }

}
